package com.jingdianjichi.subject.infra.basic.entity;

import lombok.Data;

import java.util.List;

/**
 * ES搜索结果封装类
 *
 * @author: ChickenWing
 * @date: 2023/10/5
 */
@Data
public class SearchResult<T> {

    private List<T> result;

    private Long total;

    public SearchResult(List<T> result, Long total) {
        this.result = result;
        this.total = total;
    }
}